import 'package:flutter/widgets.dart';
import 'package:flutter_roujiaosuo/flutter_bloc/requests/api/home_api.dart';
import 'package:flutter_roujiaosuo/flutter_bloc/requests/models/home_top_model.dart';

class HomeRepository {
  final HomeApi homeApi;

  HomeRepository({@required this.homeApi})
      : assert(homeApi != null),
        super();

  Future<HomeTopModel> getHomeData() async {
    HomeTopModel model = await homeApi.getHomeTop();
    return model;
  }
}
